package srcTA;

import java.util.List;

public class AcceptedBids 
{
    private List<Bid> bids;
    private double totalValue;
    private List<Integer> companiesCovered;
    private List<Integer> regionsCovered;
    
    public AcceptedBids(
            List<Bid> bids,
            double totalValue,
            List<Integer> companiesCovered,
            List<Integer> regionsCovered) 
    {
        this.bids = bids;
        this.totalValue = totalValue;
        this.companiesCovered = companiesCovered;
        this.regionsCovered = regionsCovered;
    }

    public List<Bid> Bids() 
    {
        return bids;
    }
    
    public List<Integer> CompaniesCovered() 
    {
        return companiesCovered;
    }
    
    public List<Integer> RegionsCovered() 
    {
        return regionsCovered;
    }

    @Override
    public String toString() 
    {
        return String.format(
                "AcceptedBids [totalValue=%s, bids=%s, companiesCovered=%s, regionsCovered=%s]",
                totalValue,
                bids,
                companiesCovered,
                regionsCovered);
    }
    
    public double TotalValue() 
    {
        return totalValue;
    }
}
